
<div>
<?if(isset($system_message))echo $system_message;
echo validation_errors() !==''?'<div class="error">'.validation_errors().'</div>' : NULL;
?>	
<label class="label">New Transaction Form</label>
<hr class="clearfix">
<form action="<?=site_url('custodian/new_transactions');?>" method="POST">
	<div class="input-block">
		<label>Name:</label>
		<input type="text" name="nameofstudent" class="searchInput" url="<?=site_url('output/ajax_search_student');?>" value="<?=set_value('cat[cat_name]');?>">
	</div>
	<div>
		<div class="btn-group">
		  <button class="btn add">+</button>
		  <button class="btn del">-</button>
		  <button class="btn clrs">clear</button>
		</div>
	</div>
		<hr class="clearfix">
		
	<div class="input-fields">
		<div class="large-4 columns">
			<label class="label secondary">Quantity</label>
			<input id="main" type="text" name="quantity[]" class="quantity" required>
		</div>
		
		<div class="large-8 columns">
			<label class="label secondary">Item</label>
			<!--<input type="text" name="desc[]" class="description" required>-->
			<!--
			<?if($items):?>
				<?=form_dropdown('desc[]',@$items,'','class="fee-select" required');?>
			<?else:?>
				<span class="label">Please add items on Fee Creator > Add Fee select as Other Items.</label>
			<?endif;?>
			-->
			<input type="text" id="main" class="searchFee search" url="<?=site_url('output/ajax_get_items');?>"/>
			<input type="hidden" id="main" name="desc[]" value="">
		</div>
		<hr class="clearfix">
	</div>
	<div id='dynapage'></div>
	
	<div class="input-block">
		<label>Date Issued:</label>
		<input type="text" name="dateissued" value="<?=set_value('dateissued');?>" class="datepicker">
	</div>
	<div class="input-block">
		<label>Transaction Description:</label>
		<textarea name="description"><?=set_value('description');?></textarea>
	</div>
	<div class="input-block">
		<input type="submit" class="button tiny" name="new_transactions_slip" value="Save Transaction Slip">
	</div>
</form>
</div>
<script type="text/javascript" src="<?=script_url('custom/fsearch');?>"></script>